x86/speculation: Consolidate CPU whitelists
authorThomas Gleixner <tglx@linutronix.de>
Wed, 27 Feb 2019 09:10:23 +0000 (10:10 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 15 May 2019 22:07:16 +0000 (23:07 +0100)
commit17c42b99d94024e270b34ab02070f27270fbe78c
tree0afd2d13f0820b9d3b5751a4e6bcbd2508289189
parentbe45407e1f278445b5af06cfbb0823addc5b586c
x86/speculation: Consolidate CPU whitelists

commit 36ad35131adacc29b328b9c8b6277a8bf0d6fd5d upstream

The CPU vulnerability whitelists have some overlap and there are more
whitelists coming along.

Use the driver_data field in the x86_cpu_id struct to denote the
whitelisted vulnerabilities and combine all whitelists into one.

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Jon Masters <jcm@redhat.com>
Tested-by: Jon Masters <jcm@redhat.com>
Gbp-Pq: Topic bugfix/all/spec
Gbp-Pq: Name 0005-x86-speculation-Consolidate-CPU-whitelists.patch
arch/x86/kernel/cpu/common.c